package com.naiterui.ehp.bs.doctor.repository;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bs.doctor.domain.RecordUserInfo;
import com.naiterui.ehp.bs.doctor.domain.RecordWorkContract;

/**
 * @author guoyongxiang
 * @date 2020/4/27 15:26
 * @since 1.0.0
 */
@Repository
public interface IRecordUserInfoRepository extends BaseJpaRepository<RecordUserInfo, Long> {

    /**
     * 根据用户ID和用户类型查找用户信息
     *
     * @param userId
     * @param userType
     *
     * @return
     */
    RecordUserInfo findByUserIdAndUserType(Long userId, Integer userType);

    /**
     * 根据用户编码查询用户信息
     *
     * @param userCode
     *
     * @return
     */
    RecordUserInfo findByUserCode(String userCode);
}
